package cn.seaboot.admin.flake.bean;


import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * POJO
 * 映射 [T_FLAKE_MAPPER]
 *
 * @author Mr.css on 2018-6-20
 */
@Schema(description = "映射 [T_FLAKE_MAPPER] 实体类")
public class FlakeMapper implements Serializable {

    private static final long serialVersionUID = 611216954608075683L;
    /**
     * 数据库Id
     */
    @NotNull
    @Size( max = 32)
    @Schema(description = "数据库Id")
    private String databaseId;
    /**
     * 声明方式
     */
    @Size( max = 32)
    @Schema(description = "声明方式")
    private String statementType;
    /**
     * 相关的表
     */
    @NotNull
    @Size( max = 32)
    @Schema(description = "相关的表")
    private String mapperGroup;
    /**
     * ID
     */
    @NotNull
    @Size( max = 32)
    @Schema(description = "ID")
    private String id;
    /**
     * 命令类型
     */
    @Size( max = 32)
    @Schema(description = "命令类型")
    private String commandType;
    /**
     * SQL模版
     */
    @Size( max = 65535)
    @Schema(description = "SQL模版")
    private String template;
    /**
     * 参数映射
     */
    @Size( max = 32)
    @Schema(description = "参数映射")
    private String parameterMap;
    /**
     * 参数类型
     */
    @Size( max = 32)
    @Schema(description = "参数类型")
    private String parameterType;
    /**
     * 结果映射
     */
    @Size( max = 32)
    @Schema(description = "结果映射")
    private String resultMap;
    /**
     * 结果类型
     */
    @Size( max = 32)
    @Schema(description = "结果类型")
    private String resultType;

    public String getDatabaseId() {
        return databaseId;
    }

    public void setDatabaseId(String databaseId) {
        this.databaseId = databaseId;
    }

    public String getStatementType() {
        return statementType;
    }

    public void setStatementType(String statementType) {
        this.statementType = statementType;
    }

    public String getMapperGroup() {
        return mapperGroup;
    }

    public void setMapperGroup(String mapperGroup) {
        this.mapperGroup = mapperGroup;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCommandType() {
        return commandType;
    }

    public void setCommandType(String commandType) {
        this.commandType = commandType;
    }

    public String getTemplate() {
        return template;
    }

    public void setTemplate(String template) {
        this.template = template;
    }

    public String getParameterMap() {
        return parameterMap;
    }

    public void setParameterMap(String parameterMap) {
        this.parameterMap = parameterMap;
    }

    public String getParameterType() {
        return parameterType;
    }

    public void setParameterType(String parameterType) {
        this.parameterType = parameterType;
    }

    public String getResultMap() {
        return resultMap;
    }

    public void setResultMap(String resultMap) {
        this.resultMap = resultMap;
    }

    public String getResultType() {
        return resultType;
    }

    public void setResultType(String resultType) {
        this.resultType = resultType;
    }
}
